package com.hx.vending.service.impl;

import com.hx.vending.bean.Medicine;
import com.hx.vending.dao.MedicineMapper;
import com.hx.vending.service.IMedicineService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2019/3/12.
 */
@Service
public class MedicineServiceImpl implements IMedicineService {
    @Resource
    private MedicineMapper medicineMapper;

    @Override
    public List<Medicine> selectByExample(Medicine medicine) {
        return medicineMapper.selectByExampleSelective(medicine);
    }

    @Override
    public List<Medicine> selectByExamplePage(Integer userId,Integer[] integers ,Integer pageNum) {
        return medicineMapper.selectByExamplePage(userId,integers,pageNum);
    }
}
